package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章管理对象 blog_details
 * 
 * @author ruoyi
 * @date 2024-06-22
 */
public class BlogDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 博客id */
    private Long blogId;

    /** 博客标签 */
    @Excel(name = "博客标签")
    private String blogTag;

    /** 博客标题 */
    @Excel(name = "博客标题")
    private String blogTitle;

    /** 博客内容 */
    @Excel(name = "博客内容")
    private String blogContent;

    /** 博客发表时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "博客发表时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date blogDate;

    /** 博客浏览量 */
    @Excel(name = "博客浏览量")
    private Integer blogViews;

    /** 博客评论数 */
    @Excel(name = "博客评论数")
    private Integer blogCommentsNum;

    /** 作者id */
    @Excel(name = "作者id")
    private Long userId;

    /** 作者身份notoken,hrlogin,seekerlogin */
    @Excel(name = "作者身份notoken,hrlogin,seekerlogin")
    private String userRole;

    public void setBlogId(Long blogId) 
    {
        this.blogId = blogId;
    }

    public Long getBlogId() 
    {
        return blogId;
    }
    public void setBlogTag(String blogTag) 
    {
        this.blogTag = blogTag;
    }

    public String getBlogTag() 
    {
        return blogTag;
    }
    public void setBlogTitle(String blogTitle) 
    {
        this.blogTitle = blogTitle;
    }

    public String getBlogTitle() 
    {
        return blogTitle;
    }
    public void setBlogContent(String blogContent) 
    {
        this.blogContent = blogContent;
    }

    public String getBlogContent() 
    {
        return blogContent;
    }
    public void setBlogDate(Date blogDate) 
    {
        this.blogDate = blogDate;
    }

    public Date getBlogDate() 
    {
        return blogDate;
    }
    public void setBlogViews(Integer blogViews) 
    {
        this.blogViews = blogViews;
    }

    public Integer getBlogViews() 
    {
        return blogViews;
    }
    public void setBlogCommentsNum(Integer blogCommentsNum) 
    {
        this.blogCommentsNum = blogCommentsNum;
    }

    public Integer getBlogCommentsNum() 
    {
        return blogCommentsNum;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserRole(String userRole) 
    {
        this.userRole = userRole;
    }

    public String getUserRole() 
    {
        return userRole;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("blogId", getBlogId())
            .append("blogTag", getBlogTag())
            .append("blogTitle", getBlogTitle())
            .append("blogContent", getBlogContent())
            .append("blogDate", getBlogDate())
            .append("blogViews", getBlogViews())
            .append("blogCommentsNum", getBlogCommentsNum())
            .append("userId", getUserId())
            .append("userRole", getUserRole())
            .toString();
    }
}
